<?php
/**
 * Admin tabs  hear
 * @File view/user/tabs.php
 * 
 */
//echo __FILE__;
//<li class="ui-state-default ui-corner-top" role="tab" tabindex="0" aria-controls="tabs-1" aria-labelledby="ui-id-1" aria-selected="true" aria-expanded="true">
//
$tabs =  array(
    'listsv1'=>'', 
    'lists'=>'', 
    'index'=>'', 
    'config_index'=>'',
    'active_user'=>'',
    'bulk_index'=>'',
    'export_index'=>'');
//ui-tabs-active ui-state-active
//$params = helper_function( current_url() );
if (isset($tabs[$this->router->fetch_class().'_'.$this->router->fetch_method()]))
    $tabs[$this->router->fetch_class().'_'.$this->router->fetch_method()]='ui-tabs-active ui-state-active';
else
    $tabs[$this->router->fetch_method()]='ui-tabs-active ui-state-active';

?>
<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" role="tablist">
    <li class="ui-state-default ui-corner-top <?php echo $tabs['listsv1'] ?>" role="tab" tabindex="0" >
        <a id="ui-id-1" class="ui-tabs-anchor" href="<?php echo site_url('user/lists');?>#tabs-1" role="presentation" tabindex="-1">Users List</a>
    </li>
    <li class="ui-state-default ui-corner-top <?php echo $tabs['index'] ?>" role="tab" tabindex="-2">
        <a id="ui-id-2" class="ui-tabs-anchor" href="<?php echo site_url('audit');?>#tabs-2" role="presentation" tabindex="-2">Audit Trail</a>
    </li>
    <li class="ui-state-default ui-corner-top <?php echo $tabs['bulk_index'] ?>" role="tab" tabindex="-2">
        <a id="ui-id-2" class="ui-tabs-anchor" href="<?php echo site_url('bulk');?>#tabs-2" role="presentation" tabindex="-2">Upload</a>
    </li>
    <li class="ui-state-default ui-corner-top <?php echo $tabs['config_index'] ?>" role="tab" tabindex="-3">
        <a id="ui-id-2" class="ui-tabs-anchor" href="<?php echo site_url('config/config');?>#tabs-3" role="presentation" tabindex="-3">Config</a>
    </li>
    <!--li class="ui-state-default ui-corner-top <?php echo $tabs['active_user'] ?>" role="tab" tabindex="-4">
        <a id="ui-id-2" class="ui-tabs-anchor" href="<?php echo site_url('admin/active_user');?>#tabs-4" role="presentation" tabindex="-4">Active user</a>
    </li-->
    <li class="ui-state-default ui-corner-top <?php echo $tabs['export_index'] ?>" role="tab" tabindex="-4">
        <a id="ui-id-2" class="ui-tabs-anchor" href="<?php echo site_url('export/index');?>#tabs-4" role="presentation" tabindex="-4">Export</a>
    </li>
    
    <li class="ui-state-default ui-corner-top" role="tab" tabindex="-5" style="float:right;">
        <a id="ui-id-2" class="ui-tabs-anchor" href="<?php echo site_url('admin/logout');?>#tabs-5" role="presentation" tabindex="-5">Signout</a>
    </li>
</ul>


<!--ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" role="tablist">
  <li class="ui-state-default ui-corner-top ui-tabs-active ui-state-active" role="tab" tabindex="0" aria-controls="tabs-1" aria-labelledby="ui-id-1" aria-selected="true" aria-expanded="true">
    <a id="ui-id-1" class="ui-tabs-anchor" href="#tabs-1" role="presentation" tabindex="-1">Users List</a>
  </li>
  <li class="ui-state-default ui-corner-top ui-state-hover" role="tab" tabindex="-1" aria-controls="tabs-2" aria-labelledby="ui-id-2" aria-selected="false" aria-expanded="false">
    <a id="ui-id-2" class="ui-tabs-anchor" href="#tabs-2" role="presentation" tabindex="-1">Audit Trail</a>
  </li>
</ul-->
